package com.lwj.utils.excel;

import com.alibaba.excel.write.handler.WriteHandler;

import java.util.ArrayList;
import java.util.List;

public class SheetInfo<T> {
    private String sheetName;
    private Class<T> c;
    private List<T> data;
    private int sheetIndex=1;
    private List<WriteHandler> writeHandlerList=new ArrayList<>();

    public List<WriteHandler> getWriteHandlerList() {
        return writeHandlerList;
    }

    public int getSheetIndex() {
        return sheetIndex;
    }

    public void setSheetIndex(int sheetIndex) {
        this.sheetIndex = sheetIndex;
    }

    public void setWriteHandlerList(List<WriteHandler> writeHandlerList) {
        this.writeHandlerList = writeHandlerList;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public Class<T> getC() {
        return c;
    }

    public void setC(Class<T> c) {
        this.c = c;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public SheetInfo(String sheetName, Class<T> c, List<T> data,int sheetIndex,List<WriteHandler> writeHandlerList) {
        this.sheetName = sheetName;
        this.c = c;
        this.data = data;
        this.sheetIndex=sheetIndex;
        this.writeHandlerList=writeHandlerList;
    }
}
